﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<TanHungViet.Web.Models.MenuItem>>" %>

<!-- begin Module menu left - Dynamic-->
<%foreach (var item in Model)
  { %>
    <div class="title-menu">
	    <h2 class="text"><%=item.Title%></h2>
    </div>
    <%if (item.SubMenu != null || item.SubMenu.Count > 0)
    { %>
        <div class="left-menu">
            <ul>
            <% foreach (var sub in item.SubMenu)
            { %>
                <li>
                    <a href="<%=sub.Link%>"><%=sub.Title%></a> 
                </li> 
            <%} %>
            </ul>	
        </div>
    <%} %>
<%} %>